﻿<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>商品后台管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

<style>
        /* reset */
    body,h1,h2,h3,h4,h5,p,dl,dd,ul,ol,form,input,textarea,th,td,select { margin:0; padding:0; }
    em { font-style:normal; }
    li { list-style:none; }
    a { text-decoration:none; }
    img { border:none; vertical-align:top; }
    table { border-collapse:collapse; }
    input,textarea { outline:none; }
    textarea { resize:none; overflow:auto; }
    body { font-size:12px; font-family:"微软雅黑"; }
    /* end reset */
    .box{width:800px;border:1px solid #77AAE0;margin-left:10px;margin-top:10px;}
    .box_head{width:798px;height:34px;background:url(./App/View/Admin/images/tab_bg.gif) repeat-x;padding-left:2px;border-bottom:1px solid #77AAE0;}
    .box_head p{float:left;width:60px;height:34px;line-height:34px;background:url(./App/View/Admin/images/tab_bg_left.gif) no-repeat;text-indent:5px;color:#fff;font-weight:bold;}
    .box_head input{display:inline-block;width:62px;height:24px;background:url(./App/View/Admin/images/btn.gif);border:0;text-indent:-9999px;margin:5px 5px 0 0;}
    .box_head .sub1{background-position:0 -360px;}
    .box_head .sub2{background-position:0 -96px;}

    table{margin:10px;}
    table,table tr,table th,table td{border:1px solid #77AAE0;background:#F0F8FF;}
    table th{padding-left:5px;height:27px;line-height:27px;text-indent:3px;}
    table th span{font-weight:normal;padding-left:20px;color:red;}
    table td{padding:5px;height:27px;line-height:27px;text-indent:3px;}
    table td span{color:red;padding-left:5px;}
    table input{width:133px;height:22px;border:1px solid #7F9DB9;}
    table .tdw1{width:85px;}
    table .tdw2{width:233px;}

    .fl{float:left;}
    .fr{float:right;}
</style>

</head>


<body>
    <div class="box">
        <form action="./index.php?p=admin&c=goods&a=insert" method="POST" enctype="multipart/form-data">
        <div class="box_head">
            <p>商品新增</p>
            <div class="">
            <input type="submit" class="sub2 fr">
            </div>
        </div>        
        <table>
            <tr>
                <th colspan="4" style="text-align:left;">基本资料<span>帶*號欄位為必填選項</span></th>
            </tr>
            <tr>
                <td class="tdw1">商品名<span>*</span></td>
                <td class="tdw2"><input type="text" name="goods_name"></td>
                <td class="tdw1">商品分类<span>*</span></td>
                <td class="tdw2">
                    <select name="cate_id">
                        <?php foreach($cates as $v) :?>
                            <option value="<?php echo $v['cate_id']; ?>"><?php echo $v['cate_name']; ?></option>
                        <?php endforeach;?>
                    </select>
                </td>
            </tr>
            <tr>
                <td>描述</td>
                <td><input type="text" name="goods_desc"></td>
                <td>图片</td>
                <td><input type="file" name="pic"></td>
            </tr>
            <tr>
                <td>市场价格</td>
                <td><input type="text" name="market_price"></td>
                <td>本店价格</td>
                <td><input type="text" name="shop_price"></td>
            </tr>
        </table>
        </form>
    </div>
</body>

</html>
